﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entity
{
    /// <summary>
    /// 同城活动
    /// </summary>
    public class OneCityEvent
    {
        private string id;      //ie. http://api.douban.com/event/10069638
        private string title;   //ie.Debugging the Web
        private string catgry;      //类别，ie. event.salon
        private string summary;     //摘要
        private string content;     //活动全文
        private bool invite_only;
        private bool can_invite;
        private int participants;  //参加人数
        private int wishers;       //感兴趣的人数
        private Status status;     //状态
        private DateTime endTime;   //结束时间
        private DateTime startTime; //开始时间
        private string location;    //所在地
        private string where;       //具体地点

        public string ID
        {
            get { return id; }
        }
        public string Title
        {
            get { return title; }
            set { title = value;}
        }
        public string Catgry
        {
            get { return catgry; }
            set {catgry = value;} 
        }
        public string Summary
        {
            get { return summary; }
            set { summary = value; }
        }
        public string Content
        {
            get { return content; }
            set { content = value; }
        }
        public bool Invite_only
        {
            get { return invite_only; }
            set { invite_only = value; }
        }
        public bool Can_invite
        {
            get { return can_invite; }
            set { can_invite = value; }
        }
        public int Participants
        {
            get { return participants; }
            set { participants = value; }
        }
        public int Wishers
        {
            get { return wishers; }
            set { wishers = value; }
        }
        public Status State
        {
            get { return status; }
            set { status = value; }
        }
        public DateTime EndTime
        {
            get { return endTime; }
            set { endTime = value; }
        }
        public DateTime StartTime
        {
            get { return startTime; }
            set { startTime = value; }
        }
        public string Location
        {
            get { return location; }
            set { location = value; }
        }
        public string Where
        {
            get { return where; }
            set { where = value; }
        }
        public enum Status
        {
            open,       //开放
            closed,     //已结束
        }

        public OneCityEvent(string id)
        {
            this.id = id;
        }
        
        public OneCityEvent()
        {
        }
    }


    
}
